import { baseRequest } from "@/utils/request";
const request = (url, ...arg) => baseRequest(`/admin/v1/org/${url}`, ...arg);

export default {
  getTree(data) {
    return request("getTree", data);
  },
  list(data) {
    return request("list", data);
  },
  delete(data) {
    return request("delete", data);
  },
  save(data) {
    return request("save", data);
  },
};
